08. Univariate Plots

Consider we look at an entire library full of books. An example of our dataset is shown here:

Book Name Pages
Harry Potter Book 1 309
The Jungle Book 45
The Hobbit 300

I want to plot the number of books with a certain number of pages (or range of pages).

SOLUTION: Histogram

Now imagine we are selling cookies, and we are keeping track of how many each type are sold.

Cookie Type Sold
Mint Cookies 309
Chocolate Chip Cookies 245
Peanut Butter Cookies 210
Toffee Cookies 140

Which of the below are plots we could build to plot the number of each type of cookie sold? (Select all that apply).

SOLUTION:
  • Pie Chart
  • Bar Chart
  • Pareto Chart